package org.kmfdm.horrorscope.service.beans;

import java.util.Date;

import org.kmfdm.horrorscope.core.dao.ChartDAO;
import org.kmfdm.horrorscope.metamodel.Chart;
import org.kmfdm.horrorscope.service.CreateChart;


public class CreateChartImpl implements CreateChart {
	
	private ChartDAO daoC;

	public void createChart(Chart c){
		
		c.setLastEdit(new Date());
		daoC.createChart(c);
		
		
	}
	
	public void setDaoC(ChartDAO daoC) {
		this.daoC = daoC;
	}

	public ChartDAO getDaoC() {
		return daoC;
	}
	
}
